package com.tianji.config;

import com.tianji.contract.bill.task.BillTask;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.DelayQueue;
@Configuration
public class DelayQueueConfig {
    // 定义 DelayQueue 作为 Spring 管理的 Bean
    @Bean
    public DelayQueue<BillTask> billTaskDelayQueue() {
        return new DelayQueue<>();
    }


}
